import wepy from 'wepy'
const request = {
  get(url, {
    data = {},
    header = {
      'content-type': 'application/json' // 默认值
    },
  success,
  fail}) {
    return wepy.request({
      url: 'https://www.hjbnice.com' + url, // 仅为示例，并非真实的接口地址
      data,
      header,
      method: 'GET',
      success,
      fail
    })
  }
}
export default request
